<!DOCTYPE html>
<HTML>

<HEAD>
<meta charset="UTF-8">
<TITLE>DICTIONARY</TITLE>

<STYLE TYPE="TEXT/CSS">
body{
	background-color:#aaa;
}

</STYLE>

<SCRIPT TYPE="TEXT/JAVASCRIPT" SRC="E2Cdictionary.js"></SCRIPT>

</HEAD>

<BODY>

<h1>英汉词典</h1>
<p>请输入英文单词后点击查询按钮</p>
<input id="englishword" />
<button onclick="find()" onchange="find()">查询</button>
<div id="result" style="background-color:#ddd;padding:20px;"></div>


<SCRIPT TYPE="TEXT/JAVASCRIPT">
function meaning(word){
	var meaningString=eval("wordMeaning.$"+word);
	if(meaningString!=undefined){
		return meaningString;	
	}else{
		return "查不到";
	}
}

function find(){
	var inputWord=document.getElementById("englishword").value;
	document.getElementById("result").innerHTML=meaning(inputWord);
}
	
</SCRIPT>

</BODY>



</HTML>